package com.visizen.wisdomclass.server.model;

import java.util.ArrayList;
import java.util.List;

public class WcGroupOrganizeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WcGroupOrganizeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGROUP_IDIsNull() {
            addCriterion("GROUP_ID is null");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDIsNotNull() {
            addCriterion("GROUP_ID is not null");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDEqualTo(Long value) {
            addCriterion("GROUP_ID =", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDNotEqualTo(Long value) {
            addCriterion("GROUP_ID <>", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDGreaterThan(Long value) {
            addCriterion("GROUP_ID >", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("GROUP_ID >=", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDLessThan(Long value) {
            addCriterion("GROUP_ID <", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDLessThanOrEqualTo(Long value) {
            addCriterion("GROUP_ID <=", value, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDIn(List<Long> values) {
            addCriterion("GROUP_ID in", values, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDNotIn(List<Long> values) {
            addCriterion("GROUP_ID not in", values, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDBetween(Long value1, Long value2) {
            addCriterion("GROUP_ID between", value1, value2, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_IDNotBetween(Long value1, Long value2) {
            addCriterion("GROUP_ID not between", value1, value2, "GROUP_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIsNull() {
            addCriterion("PARENT_ID is null");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIsNotNull() {
            addCriterion("PARENT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDEqualTo(Long value) {
            addCriterion("PARENT_ID =", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotEqualTo(Long value) {
            addCriterion("PARENT_ID <>", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDGreaterThan(Long value) {
            addCriterion("PARENT_ID >", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("PARENT_ID >=", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDLessThan(Long value) {
            addCriterion("PARENT_ID <", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDLessThanOrEqualTo(Long value) {
            addCriterion("PARENT_ID <=", value, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDIn(List<Long> values) {
            addCriterion("PARENT_ID in", values, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotIn(List<Long> values) {
            addCriterion("PARENT_ID not in", values, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDBetween(Long value1, Long value2) {
            addCriterion("PARENT_ID between", value1, value2, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andPARENT_IDNotBetween(Long value1, Long value2) {
            addCriterion("PARENT_ID not between", value1, value2, "PARENT_ID");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEIsNull() {
            addCriterion("GROUP_NAME is null");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEIsNotNull() {
            addCriterion("GROUP_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEEqualTo(String value) {
            addCriterion("GROUP_NAME =", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMENotEqualTo(String value) {
            addCriterion("GROUP_NAME <>", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEGreaterThan(String value) {
            addCriterion("GROUP_NAME >", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEGreaterThanOrEqualTo(String value) {
            addCriterion("GROUP_NAME >=", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMELessThan(String value) {
            addCriterion("GROUP_NAME <", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMELessThanOrEqualTo(String value) {
            addCriterion("GROUP_NAME <=", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMELike(String value) {
            addCriterion("GROUP_NAME like", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMENotLike(String value) {
            addCriterion("GROUP_NAME not like", value, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEIn(List<String> values) {
            addCriterion("GROUP_NAME in", values, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMENotIn(List<String> values) {
            addCriterion("GROUP_NAME not in", values, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMEBetween(String value1, String value2) {
            addCriterion("GROUP_NAME between", value1, value2, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andGROUP_NAMENotBetween(String value1, String value2) {
            addCriterion("GROUP_NAME not between", value1, value2, "GROUP_NAME");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONIsNull() {
            addCriterion("DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONIsNotNull() {
            addCriterion("DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONEqualTo(String value) {
            addCriterion("DESCRIPTION =", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONNotEqualTo(String value) {
            addCriterion("DESCRIPTION <>", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONGreaterThan(String value) {
            addCriterion("DESCRIPTION >", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION >=", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONLessThan(String value) {
            addCriterion("DESCRIPTION <", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION <=", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONLike(String value) {
            addCriterion("DESCRIPTION like", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONNotLike(String value) {
            addCriterion("DESCRIPTION not like", value, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONIn(List<String> values) {
            addCriterion("DESCRIPTION in", values, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONNotIn(List<String> values) {
            addCriterion("DESCRIPTION not in", values, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONBetween(String value1, String value2) {
            addCriterion("DESCRIPTION between", value1, value2, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andDESCRIPTIONNotBetween(String value1, String value2) {
            addCriterion("DESCRIPTION not between", value1, value2, "DESCRIPTION");
            return (Criteria) this;
        }

        public Criteria andLEVELIsNull() {
            addCriterion("LEVEL is null");
            return (Criteria) this;
        }

        public Criteria andLEVELIsNotNull() {
            addCriterion("LEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andLEVELEqualTo(Integer value) {
            addCriterion("LEVEL =", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELNotEqualTo(Integer value) {
            addCriterion("LEVEL <>", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELGreaterThan(Integer value) {
            addCriterion("LEVEL >", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELGreaterThanOrEqualTo(Integer value) {
            addCriterion("LEVEL >=", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELLessThan(Integer value) {
            addCriterion("LEVEL <", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELLessThanOrEqualTo(Integer value) {
            addCriterion("LEVEL <=", value, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELIn(List<Integer> values) {
            addCriterion("LEVEL in", values, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELNotIn(List<Integer> values) {
            addCriterion("LEVEL not in", values, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELBetween(Integer value1, Integer value2) {
            addCriterion("LEVEL between", value1, value2, "LEVEL");
            return (Criteria) this;
        }

        public Criteria andLEVELNotBetween(Integer value1, Integer value2) {
            addCriterion("LEVEL not between", value1, value2, "LEVEL");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}